package com.example.pages;

public class FilmsPage extends InternalPage{

	public FilmPage openFilm(String nameFilm){
		for(int i=0; i < linksToFilms.size(); i++){
		if(linksToFilms.get(i).getText().equals(nameFilm)){
			linksToFilms.get(i).click();
			break;
		}
		}
		return MyPageFactory.getPage(driver, FilmPage.class);
	}
	
}


